<?php 


	if(!isset($_SESSION['username'])){
		echo "<script>alert('请登录！');window.location.href='index.php?m=admin&c=manage'</script>";die;
	}
	
	// $category =dbselect($con,'category','id,pid,category_name');

	// $child = array();
	// foreach($category as $val){
	// 	$child[] = $val['pid'];
	// }
	// var_dump($child);
	// die;
	




	

	// var_dump($cate);
	
	//权限管理
	authonity($con);
	

?>